package com.zhiwen.design.decorate;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/12/5 10:35
 * @Description:
 */
public class TestDecorator {
    public static void main(String[] args) {
        ConcreteComponent concreteComponent = new ConcreteComponent();
        ConcreteDecorator concreteDecorator = new ConcreteDecorator(concreteComponent);
        ConcreteDecorator1 concreteDecorator1 = new ConcreteDecorator1(concreteComponent);
        concreteDecorator.operation();
        concreteDecorator1.operation();
    }
}
